﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace g42.Entities
{
  public abstract class BaseEnt
  {
    public virtual Guid Id { get; set; }
    public virtual string Nr { get; set; }
  }
}


/*
 public interface IEntity
  {
    Guid Id { get; set; }
  }
  
  
  public class Entity<T>: IEntity where T: IEntity
  {
    protected Entity()
    {
      Initialize();
    }

    protected virtual void Initialize()
    {
      
    }

    public virtual Guid Id { get; set; }

    public virtual bool Equals(T obj)
    {
      return Id == obj.Id;
    }
    public override bool Equals(object obj)
    {
      return Equals((T)obj);
    }
    public override int GetHashCode()
    {
      return base.GetHashCode();
    }
  }
*/